package edu.ccdb.irods.dataType;

public class PurposeValue {
	private DataSectionType type;
	private String name;
	private int purposeID;
	
	public PurposeValue ( String type, String value, int purposeID ) {
		this.type = DataSectionType.getType(type);
		this.name = value; 
		this.purposeID = purposeID;
	}
	
	public PurposeValue (DataSectionType type, String value, int purposeID  ) {
		this.type = type;
		this.name = value;
		this.purposeID = purposeID;
	}
	
	public String toString(){
		return name;
	}
	
	public String displayBothNames () {
		
		return "[" + name + "-" + type + "]" ;
	}
	
	public DataSectionType getType() {
		return type;
	}
	
	public String getValue() {
		return name;
	}

	public int getPurposeID() {
		return purposeID;
	}
}

